<?php
class TBB_Utility_Date
{
	public static function formatDateTime($datetime, $oldFormat = 'y-MM-dd HH:mm:ss', $newFormat = 'dd-MM-y HH:mm:ss')
	{
		$dateTimeFormat = new Zend_Date($datetime, $oldFormat);
		return $dateTimeFormat->toString($newFormat);		
	}
	
	public static function formatDate($date, $oldFormat = 'y-MM-dd', $newFormat = 'dd-MM-y')
	{
		$dateFormat = new Zend_Date($date, $oldFormat);
		return $dateFormat->toString($newFormat);			
	}
	
	public static function getCurrentDate()
	{
		$date = new Zend_Date();
		return $date->getDate();
	}
}